package main

import (
	"fmt"
	"github.com/gofiber/fiber"
	"gowork/1+NService/controller"
	"gowork/1+NService/utils"
)

func main()  {
	w := new(utils.Worker)
	for i:=1; i<=15; i++ {
		fmt.Println(w.GetId())
	}

	app := fiber.New()

	nsc := new(controller.NServiceController)
	app.Post("/importNServiceInfo", nsc.ImportNServiceInfo)
	app.Post("/distribution", nsc.Distribution)
	app.Post("/queryNServiceInfo", nsc.QueryNServiceInfo)

	app.Listen(9112)
}